<!DOCTYPE html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="wasm_response_apis.js"></script>
<script src="../wasm/resources/wasm-module-builder.js"></script>
<script>
  promise_test(TestStreamedCompile, "test compileStreaming");

  promise_test(TestCompileOkStatusIsChecked, "test HTTP status is verified (compileStreaming)");
  promise_test(TestInstantiateOkStatusIsChecked, "test HTTP status is verified (instantiateStreaming)");
  promise_test(TestCompileMimeTypeIsChecked, "test MIME type is verified (compileStreaming)");
  promise_test(TestInstantiateMimeTypeIsChecked, "test MIME type is verified (instantiateStreaming)");
  promise_test(TestShortFormStreamedCompile, "test compileStreaming with promise parameter");
  promise_test(NegativeTestStreamedCompilePromise, "promise must produce a Response");
  promise_test(CompileBlankResponse, "compileStreaming blank response");
  promise_test(InstantiateBlankResponse, "instantiateStreaming blank response");
  promise_test(CompileEmpty, "compileStreaming - no parameters");
  promise_test(InstantiateEmpty, "instantiateStreaming - no parameters");
  promise_test(CompileFromArrayBuffer, "compileStreaming from array buffer");
  promise_test(CompileFromInvalidArrayBuffer, "compileStreaming from an invalid array buffer");
  promise_test(TestStreamedInstantiate, "test instantiateStreaming");
  promise_test(InstantiateFromArrayBuffer, "test instantiateStreaming from array buffer");
  promise_test(InstantiateFromInvalidArrayBuffer, "test instantiateStreaming from invalid buffer");
  promise_test(TestShortFormStreamedInstantiate, "test instantiateStreaming with promise parameter");
  promise_test(TestInstantiateComplexModule, "instantiateStreaming locally built module");
  promise_test(CompileFromInvalidDownload, "compile from invalid download");
  promise_test(InstantiateFromInvalidDownload, "instantiate from invalid download");
  promise_test(TestStreamingCompileExistsInWorker, "test compileStreaming exists in Worker");
  promise_test(TestStreamingInstantiateExistsInWorker, "test instantiateStreaming exists in Worker");
</script>
